package org.zfes.snowier.cloud.zbss.pmp.router.service.ma;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.zfes.snowier.auth.shiro.util.SecurityUtil;
import org.zfes.snowier.cloud.zbss.pmp.model.PmpDifficultyScore;
import org.zfes.snowier.cloud.zbss.pmp.service.IPmpDifficultyScoreService;
import org.zfes.snowier.web.controller.BaseController;

@Controller("org.zfes.snowier.cloud.zbss.pmp.router.service.ma.PmpDifficultyScoreController")
@RequestMapping("/pmp/service/ma/difScore")
public class PmpDifficultyScoreController extends BaseController {

	@Autowired
	private IPmpDifficultyScoreService pmpDifficultyScoreService;
   
    @RequestMapping(value="/createDifScore", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody Object createPmpProject(PmpDifficultyScore pmpDifficultyScore){
    	pmpDifficultyScoreService.createPmpDifficultyScore(pmpDifficultyScore);
        return ajaxDoneSuccess("数据操作成功 ");
    }


    @RequestMapping(value="/updateDifScore", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object updatePmpProject(PmpDifficultyScore pmpDifficultyScore){
    	pmpDifficultyScoreService.updatePmpDifficultyScore(pmpDifficultyScore);
        return ajaxDoneSuccess("数据操作成功 ");
    }

   
    @RequestMapping(value="/setDifScoreStatus", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody  Object setDifScoreStatus(Long id,Byte status ){
    	pmpDifficultyScoreService.setPmpDifficultyScoreStatus(id, status);
        return ajaxDoneSuccess("数据操作成功 ");
    }
    

}
